//
//  SectionHeaderView.m
//  OurRelaxDemo
//
//  Created by 于宾尧 on 15/6/20.
//  Copyright (c) 2015年 于宾尧. All rights reserved.
//

#import "SectionHeaderView.h"

@implementation SectionHeaderView

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

-(instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self subMyViews];
    }
    return self;
}

-(void)subMyViews
{
    UIView *blueView = [[UIView alloc]initWithFrame:CGRectMake(0, 0, 1, self.frame.size.height)];
    blueView.backgroundColor = [UIColor cyanColor];
    [self addSubview:blueView];
    
    self.radioType = [[UILabel alloc]initWithFrame:CGRectMake(5, 0, self.frame.size.width, self.frame.size.height)];
    self.radioType.backgroundColor = [UIColor blackColor];
    [self addSubview:self.radioType];
}

@end
